#include <iostream>
#include <string>
#ifndef MYCLASS_HPP
#define MYCLASS_HPP

using namespace std;
class student{//пользовательский класс "студент"
public:
  student(){Fam=Name=Group="No Info"; Number=0;};
  ~student(){}; 
  string Fam,Name,Group;
  int Number;
  friend ostream& operator<<(ostream&, student&);//друзья - операторы ввода-вывода
  friend istream& operator>>(istream&, student&);
};

ostream& operator<<(ostream& out, student& c)//вывод
{
  return out<<"Info:"<<endl
  <<"Familia: "+c.Fam<<endl
  <<"Name: "+c.Name<<endl
  <<"Group: "+c.Group<<endl
  <<"Number: "<<c.Number<<endl;
};

istream& operator>>(istream& in, student& c)//ввод
{
  in.tie(&cout);
  cout<<"Enter Familia: ";
  getline(in,c.Fam);
  cout<<"Enter Name: ";
  getline(in,c.Name);
  cout<<"Enter Group: ";
  getline(in,c.Group);
  cout<<"Enter Number: ";
  in>>c.Number;
  in.get();
  cout<<endl;
  return in;
};

#endif
